package adminSys

import "time"

type AdminSysUsers struct {
	UserServer *UserServer
}
type UserServer struct {
}

func (as *UserServer) ListToRows(result []map[string]interface{}) []map[string]interface{} {
	for i, record := range result {
		for field, value := range record {
			if field == "updated_at" {
				if timestamp, ok := value.(time.Time); ok {
					record["updated_at"] = timestamp.Format("2006-01-02 15:04:05")
				}
			}
		}
		record["新加的字段"] = "abcdef"
		result[i] = record
	}
	return result
}
